import request from '../utils/request.js'


// 获取轮播图数据
export const getSwiper = () => {
	return request.get('/api/getlunbo')
}

// 获取商品列表数据
export const getGoodList = () => {
	return request.get('/api/recommend?page=1&limit=15')
}

// 获取筛选后的商品数据
export const getGoodListFilter = (value,sort) => {
	return request.get(`/api/search?value=${value}&sort=${sort}&page=1&pagesize=10`)
}